package com.example.aerospacemanagementsystem.service.attendanceService.impl;



import com.example.aerospacemanagementsystem.entity.attendance.Leave;

import com.example.aerospacemanagementsystem.mapper.attendanceMapper.LeaveMapper;
import com.example.aerospacemanagementsystem.service.attendanceService.LeaveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李明国
* @description 针对表【leave】的数据库操作Service实现
* @createDate 2023-10-20 15:24:40
*/
@Service
public class LeaveServiceImpl implements LeaveService{
    @Autowired
    private LeaveMapper leaveMapper;

    @Override
    public int add(Leave leave) {
        return leaveMapper.insert(leave);
    }

    @Override
    public int delete(Leave leave) {
        return leaveMapper.delete(leave);
    }

    @Override
    public int update(Leave leave) { return leaveMapper.update(leave);
    }

    @Override
    public List<Leave> getAllLeave(Leave leave) {
        return leaveMapper.getAllLeave(leave);
    }

}




